package org.dromara.system.domain.bo;

import org.dromara.system.domain.EmailTemplate;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 邮件模板业务对象 email_template
 *
 * @author Gavino
 * @date 2024-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = EmailTemplate.class, reverseConvertGenerate = false)
public class EmailTemplateBo extends BaseEntity {

    /**
     * 队列ID
     */
    @NotNull(message = "队列ID不能为空", groups = { EditGroup.class })
    private Long templateId;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 模板类型
     */
    @NotNull(message = "模板类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 邮件主题
     */
    @NotBlank(message = "邮件主题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String theme;

    /**
     * 邮件模板
     */
    @NotBlank(message = "邮件模板不能为空", groups = { AddGroup.class, EditGroup.class })
    private String template;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 创建人ID
     */
    private Long createId;

    /**
     * 创建者
     */
    private String createName;

    /**
     * 更新人ID
     */
    private Long updateId;

    /**
     * 更新者
     */
    private String updateName;
}
